package com.suns.client;

import com.suns.HelloServiceGrpc;
import com.suns.SimpleRequest;
import com.suns.SimpleRequest.Builder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiangminwen
 * @date 2024/4/8 17:29
 */
@RestController
public class TestController {

//    @GrpcClient("grpc-server")
//    private HelloServiceGrpc.HelloServiceBlockingStub serviceBlockingStub;
//
//    @RequestMapping("test")
//    public String test() {
//        Builder req = SimpleRequest.newBuilder().setName("client").setAge(10).addCode("code1").addCode("code2");
//        return serviceBlockingStub.hello(req.build()).getData();
//    }
}
